package vivace.view;

import lib.Komponenter.*;
import lib.Texter.*;
import javax.swing.*;
public class VButton extends CButton {

	private static final long serialVersionUID = -5032020546676830509L;
	private String toolTipKey;

	/**
	 * VButton to change the language of button with CHAMP
	 */
	public VButton( ImageIcon imageIcon, String toolTipKey ){
		super("");
		setIcon(imageIcon);
		this.toolTipKey = toolTipKey;
		setToolTipText(Text.getText( toolTipKey ));
	}
	
	public void setToolTipKey(String toolTipKey) {
		this.toolTipKey = toolTipKey;
		setToolTipText(Text.getText(toolTipKey));
	}
		
	@Override
	public void setCText() {
		super.setCText();
		setToolTipText( Text.getText( toolTipKey ));
	}

	
}
